package com.javasm.sys;

import java.util.Collection;
import java.util.List;

public interface UserService {
    //根据userAccount找到Pwd
    SysUser getUserByAccount(SysUser user);

    //    构建部门数
    List<SysDepart> buildDeptTree();

    List<SysUser> getUsers(SysUser user);


    Integer updateUserById(SysUser user);

    Integer addUser(SysUser user);

    SysUser getParms(String userId);

    Integer delUserById(String userId);

    Integer resetPwd(String userId);

    Integer delUserByIds(List<String> ids);

    List<SysMenu> getMenus(String userId);

    SysUser getUserById(String userId);

    SysUser getOneByUname(String username);

    List<SysUser>  getUserByDeptAndPosition(String deptId, String posId);

    List<String> listPremissionsByRoleId(String roleId);
}
